<template>
  <div class="home-container">
    <div class="image-wrapper">
      <img src="@/assets/111.png" alt="首页背景" class="home-image">
    </div>
  </div>
</template>

<script setup>
</script>

<style scoped>
.home-container {
  padding: 0; /* 移除内边距 */
  height: 100vh; /* 占满整个视口高度 */
  display: flex;
  background-color: #fff;
}

.image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.home-image {
  width: 100%; /* 设置宽度为100% */
  height: 100%; /* 设置高度为100% */
  object-fit: cover; /* 改为cover模式，确保填满容器 */
  transition: transform 0.3s ease;
}

/* 添加悬停效果 */
.home-image:hover {
  transform: scale(1.02);
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
  .home-container {
    height: 100vh;
  }
}
</style> 